package com.xiaoxin.yixinai._frame.utils;

import java.util.List;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.xiaoxin.yixinai.role.MenuInfo;

@Component
public class Config {
	
	@Value(value = "${company.fullname}")
	private String companyFullName;
	
	@Value(value = "${company.shortname}")
	private String companyShortName;
	
	@Value(value = "${company.url}")
	private String companyUrl;

	/**
	 * 上传文件路径
	 */
	@Value(value = "${uploadFilePath}")
	private String uploadFilePath;

	@Value(value = "${redirectUri}")
	private String redirectUri;

	@Value(value = "${fileUploadPath}")
	private String fileUploadPath;

	@Value(value = "${fileFfmpegPath}")  //程序fileFfmpegPath的路径，这个程序是为音频文件转16k用的
	private String fileFfmpegPath;

	/**
	 * 百度语音识别api
	 */
	@Value(value = "${appId}")
	private String appId;
	@Value(value = "${apiKey}")
	private String apiKey;
	@Value(value = "${secreKey}")
	private String secreKey;


	/**
	 * 初始化话术时复制的公司ID
	 */
	@Value(value = "${questionnaireCompanyId}")
	private String questionnaireCompanyId;
	
	/**
	 * 微信推送的地址
	 */
	@Value(value="${wxSendUri}")
	private String wxSendUri;
	
	/**
	 * manage-admin项目中userInfo按钮权限
	 */
	@Value(value="${userInfo.authority_control}")
	private String userInfoAuthorityControl;
	
	/**
	 * 管理员菜单
	 */
	@Value(value="${adminMenu}")
	private String adminMenu;
	
	/**
	 * 普通用户菜单
	 */
	@Value(value="${epPlatformMenu}")
	private String epPlatformMenu;
	
	public String getCompanyFullName() {
		return companyFullName == null ? null : companyFullName.trim();
	}

	public void setCompanyFullName(String companyFullName) {
		this.companyFullName = companyFullName;
	}

	public String getCompanyShortName() {
		return companyShortName == null ? null : companyShortName.trim();
	}

	public void setCompanyShortName(String companyShortName) {
		this.companyShortName = companyShortName;
	}

	public String getCompanyUrl() {
		return companyUrl == null ? null : companyUrl.trim();
	}

	public void setCompanyUrl(String companyUrl) {
		this.companyUrl = companyUrl;
	}

	public String getUploadFilePath() {
		return uploadFilePath == null ? null : uploadFilePath.trim();
	}
	
	public void setUploadFilePath(String uploadFilePath) {
		this.uploadFilePath = uploadFilePath;
	}
	
	public String getRedirectUri() {
		return redirectUri == null ? null : redirectUri.trim();
	}
	
	public void setRedirectUri(String redirectUri) {
		this.redirectUri = redirectUri;
	}
	
	public String getFileUploadPath() {
		return fileUploadPath == null ? null : fileUploadPath.trim();
	}
	
	public void setFileUploadPath(String fileUploadPath) {
		this.fileUploadPath = fileUploadPath;
	}

	public String getQuestionnaireCompanyId() {
		return questionnaireCompanyId == null ? null : questionnaireCompanyId.trim();
	}

	public void setQuestionnaireCompanyId(String questionnaireCompanyId) {
		this.questionnaireCompanyId = questionnaireCompanyId;
	}

	public String getWxSendUri() {
		return wxSendUri == null ? null : wxSendUri.trim();
	}

	public void setWxSendUri(String wxSendUri) {
		this.wxSendUri = wxSendUri;
	}

	public String getFileFfmpegPath() {
		return fileFfmpegPath;
	}

	public void setFileFfmpegPath(String fileFfmpegPath) {
		this.fileFfmpegPath = fileFfmpegPath;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public String getSecreKey() {
		return secreKey;
	}

	public void setSecreKey(String secreKey) {
		this.secreKey = secreKey;
	}

	public String getUserInfoAuthorityControl() {
		return userInfoAuthorityControl;
	}

	public void setUserInfoAuthorityControl(String userInfoAuthorityControl) {
		this.userInfoAuthorityControl = userInfoAuthorityControl;
	}

	public String getAdminMenu() {
		return adminMenu;
	}

	public void setAdminMenu(String adminMenu) {
		this.adminMenu = adminMenu;
	}

	public String getEpPlatformMenu() {
		return epPlatformMenu;
	}

	public void setEpPlatformMenu(String epPlatformMenu) {
		this.epPlatformMenu = epPlatformMenu;
	}
	
	
}
